3.227 \(\int \frac {a+b \tanh ^{-1}(c x^n)}{x} \, dx\)

Optimal. Leaf size=36 \[ a \log (x)-\frac {b \text {Li}_2\left (-c x^n\right )}{2 n}+\frac {b \text {Li}_2\left (c x^n\right )}{2 n} \]

[Out]

a*ln(x)-1/2*b*polylog(2,-c*x^n)/n+1/2*b*polylog(2,c*x^n)/n

________________________________________________________________________________________

Rubi [A]  time = 0.04, antiderivative size = 36, normalized size of antiderivative = 1.00, number of steps used = 2, number of rules used = 2, integrand size = 14, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.143, Rules used = {6095, 5912} \[ -\frac {b \text {PolyLog}\left (2,-c x^n\right )}{2 n}+\frac {b \text {PolyLog}\left (2,c x^n\right )}{2 n}+a \log (x) \]

Antiderivative was successfully verified.

[In]

Int[(a + b*ArcTanh[c*x^n])/x,x]

[Out]

a*Log[x] - (b*PolyLog[2, -(c*x^n)])/(2*n) + (b*PolyLog[2, c*x^n])/(2*n)

Rule 5912

Int[((a_.) + ArcTanh[(c_.)*(x_)]*(b_.))/(x_), x_Symbol] :> Simp[a*Log[x], x] + (-Simp[(b*PolyLog[2, -(c*x)])/2
, x] + Simp[(b*PolyLog[2, c*x])/2, x]) /; FreeQ[{a, b, c}, x]

Rule 6095

Int[((a_.) + ArcTanh[(c_.)*(x_)^(n_)]*(b_.))^(p_.)/(x_), x_Symbol] :> Dist[1/n, Subst[Int[(a + b*ArcTanh[c*x])
^p/x, x], x, x^n], x] /; FreeQ[{a, b, c, n}, x] && IGtQ[p, 0]

Rubi steps

\begin {align*} \int \frac {a+b \tanh ^{-1}\left (c x^n\right )}{x} \, dx &=\frac {\operatorname {Subst}\left (\int \frac {a+b \tanh ^{-1}(c x)}{x} \, dx,x,x^n\right )}{n}\\ &=a \log (x)-\frac {b \text {Li}_2\left (-c x^n\right )}{2 n}+\frac {b \text {Li}_2\left (c x^n\right )}{2 n}\\ \end {align*}

________________________________________________________________________________________

Mathematica [C]  time = 0.08, size = 39, normalized size = 1.08 \[ \frac {b c x^n \, _3F_2\left (\frac {1}{2},\frac {1}{2},1;\frac {3}{2},\frac {3}{2};c^2 x^{2 n}\right )}{n}+a \log (x) \]

Antiderivative was successfully verified.

[In]

Integrate[(a + b*ArcTanh[c*x^n])/x,x]

[Out]

(b*c*x^n*HypergeometricPFQ[{1/2, 1/2, 1}, {3/2, 3/2}, c^2*x^(2*n)])/n + a*Log[x]

________________________________________________________________________________________

fricas [B]  time = 0.67, size = 141, normalized size = 3.92 \[ -\frac {b n \log \left (c \cosh \left (n \log \relax (x)\right ) + c \sinh \left (n \log \relax (x)\right ) + 1\right ) \log \relax (x) - b n \log \left (-c \cosh \left (n \log \relax (x)\right ) - c \sinh \left (n \log \relax (x)\right ) + 1\right ) \log \relax (x) - b n \log \relax (x) \log \left (-\frac {c \cosh \left (n \log \relax (x)\right ) + c \sinh \left (n \log \relax (x)\right ) + 1}{c \cosh \left (n \log \relax (x)\right ) + c \sinh \left (n \log \relax (x)\right ) - 1}\right ) - 2 \, a n \log \relax (x) - b {\rm Li}_2\left (c \cosh \left (n \log \relax (x)\right ) + c \sinh \left (n \log \relax (x)\right )\right ) + b {\rm Li}_2\left (-c \cosh \left (n \log \relax (x)\right ) - c \sinh \left (n \log \relax (x)\right )\right )}{2 \, n} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((a+b*arctanh(c*x^n))/x,x, algorithm="fricas")

[Out]

-1/2*(b*n*log(c*cosh(n*log(x)) + c*sinh(n*log(x)) + 1)*log(x) - b*n*log(-c*cosh(n*log(x)) - c*sinh(n*log(x)) +
 1)*log(x) - b*n*log(x)*log(-(c*cosh(n*log(x)) + c*sinh(n*log(x)) + 1)/(c*cosh(n*log(x)) + c*sinh(n*log(x)) -
1)) - 2*a*n*log(x) - b*dilog(c*cosh(n*log(x)) + c*sinh(n*log(x))) + b*dilog(-c*cosh(n*log(x)) - c*sinh(n*log(x
))))/n

________________________________________________________________________________________

giac [F]  time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {b \operatorname {artanh}\left (c x^{n}\right ) + a}{x}\,{d x} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((a+b*arctanh(c*x^n))/x,x, algorithm="giac")

[Out]

integrate((b*arctanh(c*x^n) + a)/x, x)

________________________________________________________________________________________

maple [B]  time = 0.04, size = 76, normalized size = 2.11 \[ \frac {a \ln \left (c \,x^{n}\right )}{n}+\frac {b \ln \left (c \,x^{n}\right ) \arctanh \left (c \,x^{n}\right )}{n}-\frac {b \dilog \left (c \,x^{n}\right )}{2 n}-\frac {b \dilog \left (c \,x^{n}+1\right )}{2 n}-\frac {b \ln \left (c \,x^{n}\right ) \ln \left (c \,x^{n}+1\right )}{2 n} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((a+b*arctanh(c*x^n))/x,x)

[Out]

1/n*a*ln(c*x^n)+1/n*b*ln(c*x^n)*arctanh(c*x^n)-1/2/n*b*dilog(c*x^n)-1/2/n*b*dilog(c*x^n+1)-1/2/n*b*ln(c*x^n)*l
n(c*x^n+1)

________________________________________________________________________________________

maxima [F]  time = 0.00, size = 0, normalized size = 0.00 \[ \frac {1}{2} \, {\left (n \int \frac {\log \relax (x)}{c x x^{n} + x}\,{d x} + n \int \frac {\log \relax (x)}{c x x^{n} - x}\,{d x} + \log \left (c x^{n} + 1\right ) \log \relax (x) - \log \left (-c x^{n} + 1\right ) \log \relax (x)\right )} b + a \log \relax (x) \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((a+b*arctanh(c*x^n))/x,x, algorithm="maxima")

[Out]

1/2*(n*integrate(log(x)/(c*x*x^n + x), x) + n*integrate(log(x)/(c*x*x^n - x), x) + log(c*x^n + 1)*log(x) - log
(-c*x^n + 1)*log(x))*b + a*log(x)

________________________________________________________________________________________

mupad [F]  time = 0.00, size = -1, normalized size = -0.03 \[ \int \frac {a+b\,\mathrm {atanh}\left (c\,x^n\right )}{x} \,d x \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((a + b*atanh(c*x^n))/x,x)

[Out]

int((a + b*atanh(c*x^n))/x, x)

________________________________________________________________________________________

sympy [F]  time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {a + b \operatorname {atanh}{\left (c x^{n} \right )}}{x}\, dx \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((a+b*atanh(c*x**n))/x,x)

[Out]

Integral((a + b*atanh(c*x**n))/x, x)

________________________________________________________________________________________